package com.showcai.service;


import com.github.pagehelper.PageInfo;
import com.showcai.module.User;
import com.showcai.module.sync.Devic;
import com.showcai.module.sync.Member;
import com.showcai.myRunTime.MyRunTimeExcption;

import java.util.List;
import java.util.Map;

/**
 * Created by Baggio on 2017-11-21.
 */
public interface UserService {

    User getUserById(Long userId) throws MyRunTimeExcption;
    User getUserByPhone(String phone) throws MyRunTimeExcption;
    User getUserBydevicId(String devicId) throws MyRunTimeExcption;
    List getUserList(Integer page,Integer pageSize) throws MyRunTimeExcption;
    void synUser(Member member) throws MyRunTimeExcption;
    void synDevic(Devic devic) throws MyRunTimeExcption;
    User addUser(User user) throws MyRunTimeExcption;
    User getUserByThirdId(String thirdId);
    User getUserByMemberId(String memberId);
    List<Map<String,String>> getDeviceByUser(Map<String,String> map) throws MyRunTimeExcption;

    PageInfo userList(Map<String,String> map) throws MyRunTimeExcption;

}
